home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 March: Reference Library / Dev.CD Mar 97 RL.toast / mac / Technical Documentation / Macintosh Technical Notes / technotes / tn / 1076_MsgTest.hqx / MsgTest / MacMsgTest / makefile < prev    next >
Encoding:
Makefile  |  1996-08-29  |  2.4 KB  |  83 lines

  1. # •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  2. # Makefile
  3. # July 31, 1996
  4. # By Ben Manuto
  5. #
  6. # © 1996 by Apple Computer, Inc., all rights reserved.
  7. #
  8. # Build instructions for the MacMsgTest tool. Requires MPW and MPW Tools from ETO 19
  9. # or later. The shell variable {MacMsgTestFolder} needs to be defined as the path
  10. # to the MacMsgTest folder before this make file can be executed.
  11. #
  12. # •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  13.  
  14. # •••••••••••••• MsgTest Makefile variables.
  15.  
  16. AppName                =    "MacMsgTest"
  17.  
  18. ObjDir                =    "{MacMsgTestFolder}"MsgTest:MacMsgTest:Objects:
  19. MsgSources            =    "{MacMsgTestFolder}"MsgTest:MacMsgTest:
  20. ResultDir            =    "{MacMsgTestFolder}"MsgTest:MacMsgTest:
  21.  
  22. MrCOptions            =    -align mac68k                            ∂
  23.                         -target ppc                                ∂
  24.                         -typecheck relaxed                         ∂
  25.                         -traceback                                ∂
  26.                         -w 2                                    ∂
  27.                         -sym on
  28.                         
  29. MsgObjects            =    "{ObjDir}Main.c.o"                        ∂
  30.                         "{ObjDir}MsgTest.c.o"                     ∂
  31.                         "{ObjDir}MsgUtil.c.o"
  32.  
  33.  
  34. # •••••••••••••• MsgTest resource build rules...
  35.  
  36. "{ResultDir}"{AppName} ƒƒ "{RIncludes}"SIOW.r
  37.     Rez -a "{Rincludes}"SIOW.r -o "{ResultDir}"{AppName}
  38.  
  39.  
  40.  
  41. # •••••••••••••• MsgTest application build rules...
  42.  
  43. "{ResultDir}"{AppName} ƒƒ {MsgObjects}
  44.     PPCLink -t 'APPL' -c '????'                                    ∂
  45.         {MsgObjects}                                             ∂
  46.         "{PPCLibraries}PPCSIOW.o"                                 ∂
  47.         "{SharedLibraries}InterfaceLib"                         ∂
  48.         "{SharedLibraries}StdCLib"                                 ∂
  49.         "{SharedLibraries}MathLib"                                 ∂
  50.         "{PPCLibraries}PPCCRuntime.o"                             ∂
  51.         "{PPCLibraries}PPCToolLibs.o"                            ∂
  52.         -sym on                                                    ∂
  53.         -o "{ResultDir}"{AppName}
  54.  
  55.  
  56. # ••••••••••••••  MsgTest source file dependencies and build rules...
  57.  
  58. "{ObjDir}Main.c.o" ƒ "{MsgSources}Main.c"                        ∂
  59.                      "{MsgSources}MsgTest.h"                    ∂
  60.                      "{MsgSources}Messaging.h"    
  61.     MrC "{MsgSources}Main.c" -o "{ObjDir}Main.c.o" {MrCOptions}
  62.  
  63.  
  64. "{ObjDir}MsgTest.c.o" ƒ "{MsgSources}MsgTest.c"                    ∂
  65.                         "{MsgSources}MsgTest.h"                    ∂
  66.                         "{MsgSources}MsgUtil.h"                    ∂
  67.                         "{MsgSources}Messaging.h"
  68.     MrC "{MsgSources}MsgTest.c" -o "{ObjDir}MsgTest.c.o" {MrCOptions}
  69.  
  70.  
  71. "{ObjDir}MsgUtil.c.o" ƒ "{MsgSources}MsgUtil.c"                    ∂
  72.                         "{MsgSources}MsgUtil.h"                    ∂
  73.                         "{MsgSources}Messaging.h"
  74.     MrC "{MsgSources}MsgUtil.c" -o "{ObjDir}MsgUtil.c.o" {MrCOptions}
  75.  
  76.  
  77.  
  78. # •••••••••••••• Clean option - Deletes all object files created by this makefile.
  79.  
  80. Clean ƒƒ
  81.     Delete -i {MsgObjects}
  82.     Delete -i "{ResultDir}"{AppName}